home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / touch_the_bubbles.swf / scripts / DefineSprite_53_ball / frame_4 / DoAction.as
Text File  |  2008-03-12  |  805b  |  32 lines

  1. if(_root.pss != 1)
  2. {
  3.    _X = _X + xs;
  4.    _Y = _Y + ys;
  5.    _parent.shadows[_name]._x = _X;
  6.    _parent.shadows[_name]._y = _Y;
  7.    if(_X < 0 + scale or _Y < 0 + scale or _X > 520 - scale or _Y > 520 - scale)
  8.    {
  9.       _parent.obj--;
  10.       _root.life.masky._xscale -= 8;
  11.       if(_root.life.masky._xscale < 0)
  12.       {
  13.          if(_root.gameover != 1)
  14.          {
  15.             _root.attachMovie("nolifeleft","nolifeleft",2);
  16.             unloadMovie(_root.addstuff);
  17.             _root.gameover = 1;
  18.          }
  19.       }
  20.       removeMovieClip(_parent.shadows[_name]);
  21.       ck = 0;
  22.       gotoAndPlay(9);
  23.    }
  24.    if(this.hitTest(_root._xmouse,_root._ymouse,1) == true)
  25.    {
  26.       _parent.obj--;
  27.       removeMovieClip(_parent.shadows[_name]);
  28.       ck = 0;
  29.       gotoAndPlay(6);
  30.    }
  31. }
  32.